package com.banach.prema.enums;


public enum SosType {

    SOS_110("110","110求救"),
    SOS_119("119","119求救"),
    SOS_120("120","120求救"),
    SOS_ONE_KEY("one_key","一键求救");

    private final String value;
    private final String desc;

    SosType(String value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public static SosType getSosType(String value){
        for(SosType ut : SosType.values()){
            if(ut.getValue().equals(value)){
                return ut;
            }
        }
        return null;
    }

    public String getValue() {
        return this.value;
    }

    public String getDesc() {
        return desc;
    }
}
